package cn.edu.zut.curriculum.mapper;

import cn.edu.zut.curriculum.entity.Commodity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommodityMapper {
    List<Commodity> queryByName(String name);
    int insertCommodity(Commodity commodity);
    Commodity queryById(long id);
    Commodity queryById2(long id);
    int updateById(long id);
    int updateById2(long id);
    List<Commodity>queryById3(long uid);
    //List<Commodity>queryById4(long uid);
    List<Commodity>queryById5(long uid);
    int delete(long id);

    int updateById3(String price,long id);
}
